/**
 * @Description: 请求返回基础对象
 * @author guoKe
 * @date 2023/6/25
*/
export type Result<T> = {
  code: string
  body: T
  message: string
  transactionID: string
};

/**
 * @Description: 实例化方法
 * @author guoKe
 * @date 2023/6/25
*/
export interface deserialize {
  deserialize(data: any);
}

/**
 * @Description: 基础反序列化定义
 * @author guoKe
 * @date 2023/7/3
*/
export class BaseDto implements deserialize {
  deserialize(data): this {
    Object.assign(this, data)
    return this
  }
}
